import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listAthlete(query) {
  return request({
    url: '/work/libraryathlete/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getAthlete(id) {
  return request({
    url: '/work/libraryathlete/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addAthlete(data) {
  return request({
    url: '/work/libraryathlete/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateAthlete(data) {
  return request({
    url: '/work/libraryathlete/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】
export function delAthlete(id) {
  return request({
    url: '/work/libraryathlete/delete-by-id',
    method: 'get',
    params: { "id": id }
  })
}

export function delAthletes(ids) {
  return request({
    url: '/work/libraryathlete/delete-by-ids',
    method: 'get',
    params: { "ids": ids }
  })
}

// 导出
export function exportAthletes(query) {
  return request({
    url: '/work/libraryreferee/export',
    method: 'get',
    params: query
  })
}
